#include <iostream>
using namespace std;

int& Test()
{
	static int a = 0;
	a++;

	return a;
}

int main()
{

	int ret = Test() = 2;

	cout << ret << endl;

	return 0;
}